<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="keywords" content="_sss游戏，H5游戏，手游，手机游戏，热门游戏，0.1折，0.1折手游，打折，折扣，优惠，新游戏开服表，手游开服表" />
    <meta name="description" content="sss游戏是一款给玩家优惠，打折扣充值的游戏平台。">
    <title>游圈添加关注</title>
    <link rel="icon" href="./sub/images/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" type="text/css" href="./sub/css/style.css">
    <script type="text/javascript" src="./sub/js/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="./sub/js/layer/layer.js"></script>
    <link rel="stylesheet" type="text/css" href="./sub/css/yonghu.css">
    <link rel="stylesheet" type="text/css" href="./sub/css/geren.css">
    <link rel="stylesheet" type="text/css" href="./sub/css/charge.css">
    <script src="./sub/js/geren.js"></script>
    <link href="./sub/paycss/public.css" rel="stylesheet" type="text/css">
    <link href="./sub/paycss/pay.css" rel="stylesheet" type="text/css">
    <script src="./sub/payjs/jquery.luara.0.0.1.min.js"></script>
</head>

<body>
    <!-- top -->
    <div class="top"
        style="background: #fff;position: relative;box-shadow: 0 1px 2px rgba(0,0,0,.02);border-bottom: 1px solid #ececec;z-index: 4;">
        <div class="main-mod" style="width: 1170px;">
            <a href="/portal/index/index.html" class="sy"><i class="iconfont">&#xe611;</i>首页</a>
            <a href="/game/index/box.html" class="sy" target="_blank"><i class="iconfont">&#xe63b;</i>游戏盒子</a>
            <a href="/wap/index/index.html" target="_blank" class="sy"><i class="iconfont">&#xe607;</i>WAP官网</a>
            <ul class="personal-info">
                <li><a href="javascript:void(0);">您好，欢迎来到sss游戏！</a>|</li>
                <li> <a href="javascript:;" class="yh-en" style="color: red">亲！请登录</a>|
                </li>
                <li> <a href="/user/register/index.html" class="yh-zc">免费注册</a>|
                </li>
                <li>
                    <div class="recommend" style="position: relative;"> <a href="" class="trigger" tabindex="0"><i
                                class="icon icon-deco-game"></i>推荐游戏<i class="icon icon-arrow"></i></a>
                        <div class="recommend-box"
                            style="position: absolute;top: 25px;left: -440px;z-index: 5;display: none;">
                            <div class="content clear-fix"
                                style="background: #fff;border: 1px solid #cecece;overflow: hidden;margin-top: 10px;padding-bottom: 5px;width: 524px;">
                                <ul class="hot-new"
                                    style="float: left;width: 50%;border-right: 1px solid #ececec;margin-left: -2px;padding-bottom: 5px;">
                                    <li class="title-tj"
                                        style="width: 100%;float: left;text-indent: 24px;font-weight: 700;position: relative;height: 32px;color: #000;">
                                        新品推荐</li>
                                    <li style="position: relative;width: 50%;float: left;height: 32px;"><a
                                            href="/game/index/detial/id/4279.html" title="最强海贼团（0.1折）" target="_blank"
                                            style="display: block;width: 86px;overflow: hidden;white-space: nowrap;word-break: break-all;text-overflow: ellipsis;text-indent: 24px;margin: 0px;">最强海贼团（0.1折）</a>
                                        <i class="new"></i>
                                    </li>
                                    <li style="position: relative;width: 50%;float: left;height: 32px;"><a
                                            href="/game/index/detial/id/4276.html" title="热血格斗（免费三国0.05折扣）"
                                            target="_blank"
                                            style="display: block;width: 86px;overflow: hidden;white-space: nowrap;word-break: break-all;text-overflow: ellipsis;text-indent: 24px;margin: 0px;">热血格斗（免费三国0.05折扣）</a>
                                        <i class="new"></i>
                                    </li>
                                    <li style="position: relative;width: 50%;float: left;height: 32px;"><a
                                            href="/game/index/detial/id/4275.html" title="三国演义之天策（0.05折三国无双）"
                                            target="_blank"
                                            style="display: block;width: 86px;overflow: hidden;white-space: nowrap;word-break: break-all;text-overflow: ellipsis;text-indent: 24px;margin: 0px;">三国演义之天策（0.05折三国无双）</a>
                                        <i class="new"></i>
                                    </li>
                                    <li style="position: relative;width: 50%;float: left;height: 32px;"><a
                                            href="/game/index/detial/id/4270.html" title="疾速冲锋（巾帼幻想0.05折）"
                                            target="_blank"
                                            style="display: block;width: 86px;overflow: hidden;white-space: nowrap;word-break: break-all;text-overflow: ellipsis;text-indent: 24px;margin: 0px;">疾速冲锋（巾帼幻想0.05折）</a>
                                        <i class="new"></i>
                                    </li>
                                    <li style="position: relative;width: 50%;float: left;height: 32px;"><a
                                            href="/game/index/detial/id/4264.html" title="妖来也（开局64800代金）"
                                            target="_blank"
                                            style="display: block;width: 86px;overflow: hidden;white-space: nowrap;word-break: break-all;text-overflow: ellipsis;text-indent: 24px;margin: 0px;">妖来也（开局64800代金）</a>
                                    </li>
                                    <li style="position: relative;width: 50%;float: left;height: 32px;"><a
                                            href="/game/index/detial/id/4262.html" title="二十四小时（0.1折变异西游）"
                                            target="_blank"
                                            style="display: block;width: 86px;overflow: hidden;white-space: nowrap;word-break: break-all;text-overflow: ellipsis;text-indent: 24px;margin: 0px;">二十四小时（0.1折变异西游）</a>
                                    </li>
                                    <li style="position: relative;width: 50%;float: left;height: 32px;"><a
                                            href="/game/index/detial/id/4260.html" title="传世奇迹（散人迷失专属）" target="_blank"
                                            style="display: block;width: 86px;overflow: hidden;white-space: nowrap;word-break: break-all;text-overflow: ellipsis;text-indent: 24px;margin: 0px;">传世奇迹（散人迷失专属）</a>
                                    </li>
                                    <li style="position: relative;width: 50%;float: left;height: 32px;"><a
                                            href="/game/index/detial/id/4259.html" title="卧龙三国（0.05折势如破竹）"
                                            target="_blank"
                                            style="display: block;width: 86px;overflow: hidden;white-space: nowrap;word-break: break-all;text-overflow: ellipsis;text-indent: 24px;margin: 0px;">卧龙三国（0.05折势如破竹）</a>
                                    </li>
                                    <li style="position: relative;width: 50%;float: left;height: 32px;"><a
                                            href="/game/index/detial/id/4258.html" title="无双之王（0.05折日送万元真充）"
                                            target="_blank"
                                            style="display: block;width: 86px;overflow: hidden;white-space: nowrap;word-break: break-all;text-overflow: ellipsis;text-indent: 24px;margin: 0px;">无双之王（0.05折日送万元真充）</a>
                                    </li>
                                    <li style="position: relative;width: 50%;float: left;height: 32px;"><a
                                            href="/game/index/detial/id/4256.html" title="鏖战三国（0.1折免费三国）"
                                            target="_blank"
                                            style="display: block;width: 86px;overflow: hidden;white-space: nowrap;word-break: break-all;text-overflow: ellipsis;text-indent: 24px;margin: 0px;">鏖战三国（0.1折免费三国）</a>
                                    </li>
                                </ul>
                                <ul class="hot-re"
                                    style="float: left;width: 50%;border-right: 1px solid #ececec;margin-left: -1px;padding-bottom: 5px;border-left: 1px solid #ececec;">
                                    <li class="title-tj"
                                        style="width: 100%;float: left;text-indent: 24px;font-weight: 700;position: relative;height: 32px;color: #000;">
                                        热门推荐</li>
                                    <li style="position: relative;width: 50%;float: left;height: 32px;"><a
                                            href="/game/index/detial/id/2105.html" title="自由之刃" target="_blank"
                                            style="display: block;width: 86px;overflow: hidden;white-space: nowrap;word-break: break-all;text-overflow: ellipsis;text-indent: 24px;margin: 0px;">自由之刃</a>
                                        <i class="hot"></i>
                                    </li>
                                    <li style="position: relative;width: 50%;float: left;height: 32px;"><a
                                            href="/game/index/detial/id/2920.html" title="武魂觉醒-众神版" target="_blank"
                                            style="display: block;width: 86px;overflow: hidden;white-space: nowrap;word-break: break-all;text-overflow: ellipsis;text-indent: 24px;margin: 0px;">武魂觉醒-众神版</a>
                                        <i class="hot"></i>
                                    </li>
                                    <li style="position: relative;width: 50%;float: left;height: 32px;"><a
                                            href="/game/index/detial/id/2711.html" title="怒火一刀-三职业" target="_blank"
                                            style="display: block;width: 86px;overflow: hidden;white-space: nowrap;word-break: break-all;text-overflow: ellipsis;text-indent: 24px;margin: 0px;">怒火一刀-三职业</a>
                                        <i class="hot"></i>
                                    </li>
                                    <li style="position: relative;width: 50%;float: left;height: 32px;"><a
                                            href="/game/index/detial/id/2408.html" title="无名之辈" target="_blank"
                                            style="display: block;width: 86px;overflow: hidden;white-space: nowrap;word-break: break-all;text-overflow: ellipsis;text-indent: 24px;margin: 0px;">无名之辈</a>
                                        <i class="hot"></i>
                                    </li>
                                    <li style="position: relative;width: 50%;float: left;height: 32px;"><a
                                            href="/game/index/detial/id/2393.html" title="热血习武（云霄传世）" target="_blank"
                                            style="display: block;width: 86px;overflow: hidden;white-space: nowrap;word-break: break-all;text-overflow: ellipsis;text-indent: 24px;margin: 0px;">热血习武（云霄传世）</a>
                                        <i class="hot"></i>
                                    </li>
                                    <li style="position: relative;width: 50%;float: left;height: 32px;"><a
                                            href="/game/index/detial/id/2314.html" title="龙城（盖世王者）" target="_blank"
                                            style="display: block;width: 86px;overflow: hidden;white-space: nowrap;word-break: break-all;text-overflow: ellipsis;text-indent: 24px;margin: 0px;">龙城（盖世王者）</a>
                                        <i class="hot"></i>
                                    </li>
                                    <li style="position: relative;width: 50%;float: left;height: 32px;"><a
                                            href="/game/index/detial/id/2220.html" title="永恒纪元（三倍加速版）" target="_blank"
                                            style="display: block;width: 86px;overflow: hidden;white-space: nowrap;word-break: break-all;text-overflow: ellipsis;text-indent: 24px;margin: 0px;">永恒纪元（三倍加速版）</a>
                                        <i class="hot"></i>
                                    </li>
                                    <li style="position: relative;width: 50%;float: left;height: 32px;"><a
                                            href="/game/index/detial/id/1855.html" title="苍穹灭" target="_blank"
                                            style="display: block;width: 86px;overflow: hidden;white-space: nowrap;word-break: break-all;text-overflow: ellipsis;text-indent: 24px;margin: 0px;">苍穹灭</a>
                                        <i class="hot"></i>
                                    </li>
                                    <li style="position: relative;width: 50%;float: left;height: 32px;"><a
                                            href="/game/index/detial/id/2800.html" title="大明侠客令" target="_blank"
                                            style="display: block;width: 86px;overflow: hidden;white-space: nowrap;word-break: break-all;text-overflow: ellipsis;text-indent: 24px;margin: 0px;">大明侠客令</a>
                                        <i class="hot"></i>
                                    </li>
                                    <li style="position: relative;width: 50%;float: left;height: 32px;"><a
                                            href="/game/index/detial/id/1794.html" title="狂暴西游（封神合击）" target="_blank"
                                            style="display: block;width: 86px;overflow: hidden;white-space: nowrap;word-break: break-all;text-overflow: ellipsis;text-indent: 24px;margin: 0px;">狂暴西游（封神合击）</a>
                                        <i class="hot"></i>
                                    </li>
                                </ul>
                            </div> <span class="arrow-inner"
                                style="position: absolute;top: -17px;right: 40px;width: 0;height: 0;border: 14px solid transparent;border-bottom-color: #fff;z-index: 5;"></span>
                            <span class="arrow-outter"
                                style="position: absolute;top: -18px;right: 40px;width: 0;height: 0;border: 14px solid transparent;border-bottom-color: #cecece;z-index: 4;"></span>
                        </div>
                    </div>
                </li>
                <li>| <a href="/user/register/index.html" class="yh-zc">客服中心</a>
                </li>
            </ul>
        </div>
    </div>
    <!--  -->
    <div class="fl-t header">
        <div class="head-2"
            style="/*background: url(./sub/img/headerbg.jpg) repeat-x;*/box-shadow: 0 1px 10px rgba(0,0,0,.02);position: relative;z-index: 3">
            <div class="container header_con" style="height: 80px;">
                <div class="brand_logo"></div>
                <ul id="" class="head-nav-2">
                    <li class='on-tou2' id='menu-item-1'><a href='/' target=''>首页</a></li>
                    <li class='' id='menu-item-5'><a href='/game' target=''>游戏大全</a></li>
                    <li class='' id='menu-item-3'><a href='/gift' target=''>游戏礼包</a></li>
                    <li class='' id='menu-item-6'><a href='/pay' target=''>交易中心</a></li>
                    <li class='' id='menu-item-4'><a href='/news' target=''>游戏资讯</a></li>
                    <li class='' id='menu-item-2'><a href='/service' target=''>蓝钻任务</a></li>
                </ul>
                <form action="/portal/search/index.html" method="post" name="" style="margin:0;padding:0">
                    <div class="hreadSearch" style="margin-top: 25px;overflow: hidden;"> <select name="searchtype"
                            style="font-family: '微软雅黑">
                            <option value="1">游戏</option> <!-- <option value="2" >资讯</option> -->
                            <option value="3">礼包</option>
                        </select> <input type="text" name="keywords" placeholder="自由之刃" value="自由之刃"
                            onclick='cleargame()' id="search_box">
                        <script>							function cleargame() {

                                $('#search_box').attr("value", "");
                                $('#search_box').attr("placeholder", "");
                            }
                        </script> <input type="submit" value="搜索">
                    </div>
                </form>
            </div>
        </div>
        <!-- <div style="background: #313131;width: 100%;position: relative;box-shadow: 0 4px 4px rgba(0,0,0,.2);z-index: 3" class="head-2-2"> <div class="container header_con" style="height: 40px;"> -->
        <!-- <ul class="head-nav-2"> <li class="on-tou2"><a href="home">首页</a></li> <li><a href="/game">游戏大全</a></li> <li><a href="/gift">游戏礼包</a></li> <li><a href="/pay">充值中心</a></li> <li><a href="/news">游戏资讯</a></li> <li><a href="/service">客服中心</a></li> </ul> -->
        <!-- 	</div> </div> -->
    </div>
    <!--  -->
    <div class="yq-main mt20 clearfix">
        <!-- yq-left -->
        <div class="yq-left" id="app">
            <!--  -->
            <div class="yq-cyyx">
                <div class="xtitle xtitle2 bgf">
                    <h3>常用游戏</h3>
                    <span class="yq-wcbtn" @click="okFun">完成</span>
                </div>
                <div class="yq-cyxs">
                    <!-- 登录 未开启 -->
                    <!-- <div class="yq-cyxs-no">您还没有开启游圈，选择任意游戏加入吧~！</div> -->
                    <!-- 未登录 -->
                    <!-- <div class="yq-cyxs-dl">
                        <div class="yq-cyxs-da">请先登录！</div>
                        <div class="yq-cyxs-db">您当前尚未登录，请前往登录后添加常用游戏！</div>
                        <div class="yq-cyxs-dc">登录</div>
                    </div> -->
                    <!-- 登录已渲染 -->
                    <ul class="yq-rmbx-ul clearfix">
                        <li class="flex-align" v-for="(item,index) in tjEndList">
                            <div class="yq-rmbx-ul-img">
                                <img :src="item.pic1" alt="">
                            </div>
                            <div class="yq-rmbx-ul-info flex1 ovn">
                                <h4>{{item.gamename}}</h4>
                                <div class="yq-rmbx-us">249新帖</div>
                                <div class="yq-rmbx-ub">3342万人关注</div>
                                <div class="yq-rmbx-ua" @click="onRemove(index,item)">
                                    <img src="./sub/images/youquan/yv250.png" alt="">
                                </div>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
            <!--  -->
            <div class="yq-rmyx">
                <div class="xtitle xtitle2 bgf">
                    <h3>热门游戏</h3>
                </div>
                <div class="yq-rmbx">
                    <div class="yq-rmbx-top flex-align">
                        <div class="yq-rmbx-top-l">选择你感兴趣的游戏吧</div>
                        <div class="yq-rmbx-top-r flex-align">
                            <input v-model="keywords" id="search-val" type="text" placeholder="搜索游戏" maxlength="50">
                            <span class="yq-rmbx-top-s" id="search-btn" @click="seaList">搜索</span>
                        </div>
                    </div>
                    <div class="rmbx-lsst" @scroll="handleScroll" ref="scrollableDiv">
                        <ul id="rmbx-box" class="yq-rmbx-ul clearfix">
                            <li class="flex-align" v-for="(item,index) in dataList">
                                <div class="yq-rmbx-ul-img">
                                    <img :src="item.pic1" alt="">
                                </div>
                                <div class="yq-rmbx-ul-info flex1 ovn">
                                    <h4>{{item.gamename}}</h4>
                                    <div class="yq-rmbx-us">249新帖</div>
                                    <div class="yq-rmbx-ub">3342万人关注</div>
                                    <div class="yq-rmbx-ua" v-if="item.isSelect">
                                        <img src="./sub/images/youquan/yv251.png" alt="">
                                    </div>
                                    <div class="yq-rmbx-ua" v-else @click="addFun(item)">
                                        <img src="./sub/images/youquan/yv252.png" alt="">
                                    </div>
                                </div>
                            </li>
                        </ul>
                        <!--  -->
                        <view class="loadmore flex-center-align">
                            <span class="loadmore-span" v-if="status=='more'">上拉显示更多</span>
                            <!-- 加载中 -->
                            <block v-if="status=='loading'">
                                <view class="flex-align">
                                    <text class="loader-android"></text>
                                    <text class="loadmore-text">正在加载...</text>
                                </view>
                            </block>
                            <text class="loadmore-text" v-if="status=='noMore'">全部加载</text>
                            <view class="loadmore-noData" v-if="status=='noData'">
                                <text class="loadmore-notxt">暂无数据</text>
                            </view>
                        </view>
                        <!--  -->
                    </div>
                </div>
            </div>
            <!--  -->
        </div>
        <!--  -->
        <div class="yq-right">
            <!--  -->
            <div class="yq-tj">
                <div class="xtitle">
                    <h3>推荐用户</h3>
                </div>
                <ul class="yq-tu">
                    <li class="flex-align">
                        <div class="yq-tum"><img class="" src="./sub/images/youquan/yfaxian.png" alt=""></div>
                        <div class="yq-tuf">
                            <h4>小熊软糖</h4>
                            <p>3342万关注</p>
                        </div>
                        <div class="yq-tus">关注</div>
                    </li>
                    <li class="flex-align">
                        <div class="yq-tum"><img class="" src="./sub/images/youquan/yfaxian.png" alt=""></div>
                        <div class="yq-tuf">
                            <h4>小熊软糖</h4>
                            <p>3342万关注</p>
                        </div>
                        <div class="yq-tus on">已关注</div>
                    </li>
                    <li class="flex-align">
                        <div class="yq-tum"><img class="" src="./sub/images/youquan/yfaxian.png" alt=""></div>
                        <div class="yq-tuf">
                            <h4>小熊软糖</h4>
                            <p>3342万关注</p>
                        </div>
                        <div class="yq-tus">关注</div>
                    </li>
                    <li class="flex-align">
                        <div class="yq-tum"><img class="" src="./sub/images/youquan/yfaxian.png" alt=""></div>
                        <div class="yq-tuf">
                            <h4>小熊软糖</h4>
                            <p>3342万关注</p>
                        </div>
                        <div class="yq-tus">关注</div>
                    </li>
                    <li class="flex-align">
                        <div class="yq-tum"><img class="" src="./sub/images/youquan/yfaxian.png" alt=""></div>
                        <div class="yq-tuf">
                            <h4>小熊软糖</h4>
                            <p>3342万关注</p>
                        </div>
                        <div class="yq-tus">关注</div>
                    </li>
                </ul>
            </div>
            <!--  -->
            <div class="yq-sss">
                <img class="yq-sss-img" src="./sub/images/s1.jpg" alt="">
                <div class="yq-sss-p">扫码下载SSS手游APP</div>
            </div>
        </div>
        <!--  -->
    </div>
    <!--  -->
    <!--底部-->
    <div class="footer" style="background: #212121;color: #acacac;padding-top: 10px; border-top: 2px solid #ff7800;">
        <div class="container" style="text-align: center;">
            <p style="text-align: center;color: #acacac;">
                健康游戏忠告：抵制不良游戏&nbsp;&nbsp;拒绝盗版游戏&nbsp;&nbsp;注意自我保护&nbsp;&nbsp;谨防受骗上当&nbsp;&nbsp;适度游戏益脑&nbsp;
                沉迷游戏伤身&nbsp;&nbsp;合理安排时间&nbsp; 享受健康生活</p>
            <!-- <a href="home" style="color: #acacac">首页</a>　　<a href="/game" style="color: #acacac">游戏大全</a>　　<a href="/gift" style="color: #acacac">游戏礼包</a>　　<a href="/pay" style="color: #acacac">充值中心</a>　　<a href="/news" style="color: #acacac">游戏资讯</a>　　<a href="/service" style="color: #acacac">客服中心</a>　　 -->
            <div style="margin-top: 20px;">
                <ul style="overflow: hidden;width: 268px;margin: 0 auto;">
                    <li style="float: left;"><a href="/jianhu.html" style="color: #acacac">家长监护工程</a><span
                            style="float: right;margin-left: 5px;margin-right: 5px;">|</span></li>
                    <li style="float: left;"><a href="/jianhu.html" style="color: #acacac">防沉迷系统</a><span
                            style="float: right;margin-left: 5px;margin-right: 5px;">|</span></li>
                    <li style="float: left;"><a href="/jianhu.html" style="color: #acacac">纠纷处理</a><span
                            style="float: right;margin-left: 5px;margin-right: 5px;">|</span></li>
                    <li style="float: left;"><a href="/user/register/clause.html" style="color: #acacac">用户协议</a></li>
                </ul>
            </div>
            <div style="margin-top: 10px;">
                <p style="text-align: center;color: #acacac;"></p>
                <p style="text-align: center;color: #acacac;">安徽追游网络科技有限公司互联网ICP备案：<a href="https://beian.miit.gov.cn/"
                        target="_blank" style="text-align: center;color: #acacac;">互联网ICP备案：皖ICP备2023010426号-2</a></p>
                　

            </div>
            <div class="logo-bottom" style="overflow: hidden;margin: 0 auto;width: 300px;">
                <div class="logo-b" style="width: 100px;height: 100px;margin: 0 auto">
                    <img src="./sub/images/xlogo.png" style="width: 100%;height: 100%;">
                </div>
            </div>
        </div>
    </div>
    <!-- 右侧悬浮 -->
    <div class="xrxf">
        <ul>
            <li>
                <a href="">
                    <div class="xrxf-img"><img src="./sub/images/xrxf1.png" alt=""></div>
                    <div class="xrxf-name">充值</div>
                </a>
            </li>
            <li class="xrxf-epx">
                <div class="xrxf-img"><img src="./sub/images/xrxf2.png" alt=""></div>
                <div class="xrxf-name">APP 下载</div>
                <div class="xrxf-ewm">
                    <img src="./sub/images/xrxfb2.png" alt="">
                </div>
            </li>
            <li id="goTop">
                <div class="xrxf-img"><img src="./sub/images/xrxf3.png" alt=""></div>
                <div class="xrxf-name">顶部</div>
            </li>
        </ul>
    </div>
    <!--  -->
    <script src="./sub/js/youquan.js"></script>
    <script src="./sub/js/vue.global.js"></script>
    <script>
        const { createApp, ref } = Vue

        createApp({
            setup() {
                //滚动
                function handleScroll(event) {
                    const scrollDiv = event.target;
                    // 获取滚动条的当前位置
                    const scrollTop = scrollDiv.scrollTop;
                    // 获取滚动容器的可视高度
                    const clientHeight = scrollDiv.clientHeight;
                    // 获取滚动内容的总高度
                    const scrollHeight = scrollDiv.scrollHeight;
                    // 判断是否滚动到底部
                    if (scrollTop + clientHeight >= scrollHeight - 40) {
                        console.log('已经滚动到底部');
                        getList()
                        // 你可以在这里执行加载更多数据的操作
                    }
                }
                let tjEndList = ref([]);//顶部已选游戏
                //获取顶部已选游戏
                function gettjEndList() {
                    $.ajax({
                        type: "POST",
                        url: "https://apibox.sssgo.com/api/v1/Bbs/circleList",
                        data: {},
                        dataType: "json",
                        headers: { "wancms-users-token": "6ba529faf72c017c1f942302cb16ea955d6d43922c43d716d540d0a38ec6951d" },
                        success: function (res) {
                            let list = res.data.list;
                            tjEndList.value = list;
                            getList('new')
                        }
                    });

                }
                gettjEndList();
                //搜索游戏
                function seaList() {
                    getList('new')
                }
                //去搜索
                let status = ref('more');
                let pageNum = ref(1);
                let pageSize = ref(21);
                let dataList = ref([]);//搜索结果的游戏
                let keywords = ref('');
                //获取游戏列表
                function getList(type) {
                    if (type == 'new') {
                        status.value = 'more';
                        pageNum.value = 1;
                        dataList.value = []
                    }
                    //判断状态
                    if (status.value != 'more') {
                        return false;
                    }

                    status.value = 'loading';
                    let params = {
                        game_name: keywords.value,
                        page: pageNum.value,
                        size: pageSize.value,
                        edition: 0,
                        device_type: "Android"
                    };
                    $.ajax({
                        type: "POST",
                        url: "https://apibox.sssgo.com/api/v1/game/list",
                        data: params,
                        dataType: "json",
                        success: function (res) {
                            let list = res.data.list || [];
                            list = list.map(item => {
                                if (tjEndList.value.some(its => its.id == item.id)) {
                                    item.isSelect = true;
                                } else {
                                    item.isSelect = false;
                                }
                                return item
                            })
                            //搜索数据
                            dataList.value = [...dataList.value, ...list];
                            pageNum.value++;
                            status.value = pageState(dataList.value.length, list.length, pageSize.value);
                        }
                    });
                }
                //删除一个
                function onRemove(index, item) {
                    tjEndList.value.splice(index, 1);
                    //查询列表数据
                    dataList.value.forEach(its => {
                        if (its.id == item.id) {
                            its.isSelect = false
                        }
                    })
                }
                //新增一个
                function addFun(item) {
                    if (tjEndList.value.length >= 5) {
                        layer.msg('最多只能5个');
                        return false
                    }
                    //已存在
                    if (tjEndList.value.some(its => its.id == item.id)) {
                        layer.msg('已存在该游戏');
                        return false
                    }
                    tjEndList.value.push(item);
                    //新增
                    item.isSelect = true;
                }
                //点击完成 提交
                function okFun() {
                    let params = {
                        game_id_list: tjEndList.value.filter(its => its.isSelect).map(item => item.id).join(',')
                    }
                    if (!params.game_id_list) {
                        layer.msg('请选择游戏');
                        return false;
                    }
                    layer.load(1, { shade: [.25, '#000'] });
                    // $.ajax  ({
                    //     url: '/api/circle/add',
                    //     type: 'POST',
                    //     data: params,
                    //     success: function (res) {
                    //         layer.closeAll('loading');
                    //         if (res.code == 200) {
                    //             layer.msg(res.msg);
                    //             setTimeout(() => {
                    //                 window.location.href = '/circle/index.html';
                    //             }, 1000);
                    //         }
                    //     }
                    // })
                }
                return {
                    tjEndList,
                    dataList,
                    keywords,
                    status,
                    seaList,
                    addFun,
                    onRemove,
                    okFun,
                    handleScroll
                }
            }
        }).mount('#app')
    </script>
    <!-- <script src="./sub/js/youquan.js"></script> -->
    <!--  -->
</body>

</html>